<%@ page import="java.util.jar.Attributes.Name"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="support.*,java.util.*" %>
    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Specialization</title>
<link href="main.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Choose Specialization</h1>
<%
	DatabaseAccessObject dao = new DatabaseAccessObject();
	LinkedList<Specialization> specializations = dao.getSpecializations();
%>
<form name="form1" action="verification.jsp" method="post">
	<select name="spec_id">
	<%
		for(int i=0;i<specializations.size();i++)
		{
	%>
	<option value="<%= specializations.get(i).getId() %>"><%= specializations.get(i).getName() %></option>
	<% } %>
	</select> <br/><br/>
	<input type="submit" value = "submit">
</form>
</body>
</html>